'''
Created on Jan 30, 2010

@author: oabalbin
'''
class database:
        
        def __init__(self, dbhost, dbuser, dbpasswd, database):
            """ Database Information """
            self.myhost = dbhost
            self.myuser = dbuser
            self.mypasswd = dbpasswd
            self.mydb = database
        
        def create_connector(self):
            conn=MySQLdb.connect(host=self.myhost,user=self.myuser,passwd=self.mypasswd,db=self.mydb)
            return conn
        
        def close_connector(self, connector):
            connector.close
